package com.viknix.threadpool.manager.client.factory;

import com.viknix.threadpool.manager.client.core.ConfigService;
import com.viknix.threadpool.manager.client.exception.TpmProcessException;
import com.viknix.threadpool.manager.client.http.HttpAgent;

import java.util.Properties;

/**
 * @Author: Dongqi
 * @Date: 2021/11/24 10:36
 * @Version 1.0
 * @Description: TpmFactory
 */
public class TpmFactory {

    public TpmFactory() {
    }

    public static ConfigService createConfigService(Properties properties, HttpAgent httpAgent) throws TpmProcessException {
        return ConfigFactory.createConfigService(properties, httpAgent);
    }

    public static ConfigService createConfigService(String serverAddr) throws TpmProcessException {
        return ConfigFactory.createConfigService(serverAddr);
    }
}
